package com.example.foobar.dao.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.entity.DaOfficialAccount;
import com.example.foobar.entity.DaRemark;
import com.example.foobar.param.DaRemarkPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 备注 服务类
 *
 * @author 郑英奔
 * @since 2021-06-07
 */
public interface DaRemarkDaoService extends BaseService<DaRemark> {

    /**
     * 保存
     *
     * @param daRemark
     * @return
     * @throws Exception
     */
    boolean saveDaRemark(DaRemark daRemark);

    /**
     * 修改
     *
     * @param daRemark
     * @return
     * @throws Exception
     */
    boolean updateDaRemark(DaRemark daRemark) ;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteDaRemark(Long id);


    /**
     * 获取分页对象
     *
     * @param daRemarkPageParam
     * @return
     * @throws Exception
     */
    Paging<DaRemark> getDaRemarkPageList(DaRemarkPageParam daRemarkPageParam);

    int selectCount(LambdaQueryWrapper<DaRemark> wrapper);

    int insert(DaRemark daRemark);

    DaRemark selectOne(LambdaQueryWrapper<DaRemark> wrapper);

    void delete(LambdaQueryWrapper<DaRemark> wrapper);
}
